**********************************************************************************************************************
********************************* REPRODUCTION FILE FOR Steiner & Hillen 2019: ***************************************
********** Vote Choices of Left-Authoritarians: Misperceived Congruence and Issue Salience ***************************
***************************************** Electoral Studies **********************************************************	
**********************************************************************************************************************	

/* How to reproduce all results
	1.) Download the two datasets used in the study:
			(a) Short-term Campaign Panel (GLES 2017), Release 6-0-0, available from: https://doi.org/10.4232/1.13150
				- ZA6804_v6-0-0.dta
				- ZA6804_missing.do
						// Note that we used version 6 of the dataset in Germen for our analysis as reported in the article
						// We verified that results are the same however when you use version 7 in English (ZA6804_en_v7-0-0.dta & ZA6804_missing_en.do), which you thus may also use to reproduce out results
			(b) 2017 Chapel Hill Expert FLASH Survey (CHES), available from: https://www.chesdata.eu/2017-chapel-hill-expert-survey 
				- combined_means_2017.dta
				- combined_experts_2017.dta
	2.) Save all files (data sets and all Stata do-files) in one folder and specify this folder as the working directory.
	3.) If neccessary, install missing ados and graph schemes. Ados used: coefplot, estout, fre, spineplot. Graph scheme used: plottig.
			ssc install coefplot
			ssc install estout
			ssc install fre
			ssc install spineplot
			ssc install blindschemes, replace all
	4.) Change working directory to the folder in which you saved the data sets and do-files (if necessary)
	* cd "XXX"
*/
	
* change general settings (to those used for our analysis)
	clear all	
	set more off, perm
	version 16.1
	set scheme plottig


do "01 Recode Campaign Panel.do"
do "01 Recode Campaign Panel_v7engl.do"	
	*** save processed dataset (with original individual-level structure)
	save "ZA6804_v6-0-0_processed.dta", replace

do "02 Descriptives.do"		


do "03 Descriptives party level.do"		

	
do "04 Stack data for scalometer"
	*** save stacked dataset (with CDU and CSU as seperate entries)
	save "ZA6804_v6-0-0_processed_stacked_scalo.dta", replace

	
do "05 Stack data for votechoice"
	*** save stacked dataset (with CDU and CSU as one entry, for conditional logit)
	save "ZA6804_v6-0-0_processed_stacked_votechoice.dta", replace

	
do "06 Descriptives stacked data"


do "07 Condlog regressions vote choice.do"


do "08 Regressions scalometer"
		
	

	